﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace MoviesManager
{
    [Serializable]
    public class FiltersCollection : List<Filter>
    {
        #region Constructors

        public FiltersCollection() { }

        public FiltersCollection(IEnumerable<Filter> items) : base(items) { }
                    
        #endregion
    }

    [Serializable]
    public class Filter
    {
        [XmlAttribute]
        public string FilterValue { get; set; }
        [XmlAttribute]
        public FilterType Type { get; set; }
    }

    [Serializable]
    public enum FilterType
    {
        Default,
        MovieRipType,
        MovieRiper,
        Year
    }
}
